#include "mysdk.h"

MySDK::MySDK(QObject *parent)
    : QObject{parent}
{}

MySDK *MySDK::getInstance()
{
    static MySDK* mySDK = new MySDK();
    return mySDK;
}

void MySDK::scanDevice()
{
    qDebug() << "查找设备...";
    QList<QString> deviceList = {"Device 0","Device 1","Device 2"};
    emit showDeviceList(deviceList);
    QImage test(":/test.png");
    MyImageProvider::getInstance()->m_image = test;
    emit refreshImage();
}
